package com.twu.biblioteca;

/**
 * Created by siba on 27/09/14.
 */
public class UserInformation {

    private static User [] users;

    public UserInformation(){
        users = fetchUserInformation();
    }

    public static User[] getUsers(){
        return users;
    }

    public static User[] fetchUserInformation(){
        User [] dummyUsers = new User[2];

        dummyUsers[0] = new User();
        dummyUsers[0].setLibraryNumber("123-1234");
        dummyUsers[0].setPassword("ThoughtWorks");
        dummyUsers[0].setName("Siba");
        dummyUsers[0].setEmail("sibaf.90@gmail.com");
        dummyUsers[0].setPhoneNumber("07580");

        dummyUsers[1] = new User();
        dummyUsers[1].setLibraryNumber("111-2222");
        dummyUsers[1].setPassword("ThoughtWorks2");
        dummyUsers[1].setName("user2");
        dummyUsers[1].setEmail("user2@gmail.com");
        dummyUsers[1].setPhoneNumber("123456");

        return dummyUsers;

    }
}
